package _05SingleTonDesignPattern;

/**
 * 饿汉式
 */
public class Person {
    private String name;
    public static  final Person person=new Person();
    private Person(){

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static Person getPerson(){
        return person;
    }
}
